package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.Orders;
import com.woniuxy.commons.entity.PageBean;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lhc
 * @create 2021-11-15 17:35
 */
@FeignClient(name = "myorders")
public interface OrdersService {
    /**
     *分页查询
     */
    @GetMapping("/myorders/selectPage")
    public ResponseResult<PageBean<Orders>> selectPage(Orders orders, Integer pageSize, Integer pageInde);

    /**
     * 修改订单状态
     * @param orders
     * @return
     */
    @PutMapping("/myorders/orderState")
    public ResponseResult putOrderState(@RequestBody Orders orders);
}
